/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uia.is202.jpademo.data;
import javax.persistence.*;

/**
 *
 * @author Ohm
 */
@Entity
@Table(name="OrderLine")
public class OrderLine {

    @OneToMany
    @JoinColumn(name="product")
    private Product product_id;

    @OneToMany
    @JoinColumn(name="order_id")
    private OrderLine order_id;

    private int quantity;

    public OrderLine(){

    }

    public OrderLine(int quantity){

    }

    public Product getProduct_id(){
        return product_id;
    }

    public void setProduct_id(Product product_id){
        this.product_id = product_id;
    }

    public OrderLine getOrder_id(){
        return order_id;
    }

    public void setOrder_id(OrderLine order_id){
        this.order_id = order_id;
    }

}
